package ch6;

import java.util.Scanner;

public class StuMax {

	public static void main(String[] args) {
		int[] ar = new int[10];
		System.out.println(ar.length);
		Scanner in = new Scanner(System.in);
		System.out.println("请输入10个数：");
		for (int i = 0; i < ar.length; i++) {
			ar[i] = in.nextInt();
		}
		int max = ar[0];
		// 从1 。。。。ar.length-1
		for (int i = 1; i < ar.length; i++) {
			if (max < ar[i]) {
				max = ar[i];
			}
		}
		System.out.println("最大的是：" + max);
	}

}
